import os
import pytest
from page.Page import Page
from selenium import webdriver


@pytest.fixture(scope='session')
def driver():
    driver = webdriver.Edge()
    driver.maximize_window()
    yield driver
    driver.quit()


@pytest.fixture(scope='session', autouse=True)
def getlies(driver):
    print("开始执行")
    po = Page(driver)
    po.login_go('15533006829', '20071020Gsh')
    print("结束运行")
